import UsersList from "./users";
import {UserDetail} from "./users/userDetail.tsx";
import {Route, Routes} from "react-router";
import {BrowserRouter as Router} from "react-router-dom";
import Layout from "../layout/Layout.tsx";
import Dashboard from "./dashboard";
import FileHome from "./file";

export default function RouterPage() {
    return <Router>
        <Layout>
            <Routes>
                <Route path={'/'} element={<Dashboard/>}></Route>
                <Route path={'/user'} element={<UsersList/>}></Route>
                <Route path={'/user/:userId/*'} element={<UserDetail/>}></Route>
                <Route path={'/file'} element={<FileHome/>}></Route>
            </Routes>
        </Layout>
    </Router>

}